public class AnimalConstructor {
    private int legs;

    public AnimalConstructor() {
        legs = 4;
    }

    public int getLegs() {
        return legs;
    }

    public void setLegs(int legs) {
        this.legs = legs;
    }
}
